package com.cqeec.netdisc0215.util;

import org.openstack4j.api.OSClient.OSClientV3;
import org.openstack4j.model.common.Identifier;
import org.openstack4j.openstack.OSFactory;


/**
 * OpenStack客户端。
 * 
 * @author 兰文杰
 * 
 * @date 2020-11-03 15:28:04
 *
 */
public class OpenStackClientUtil {
	public static OSClientV3 getOSClient() {
		return OSFactory.builderV3().endpoint("http://192.168.126.11:5000/v3")
				.credentials("admin", "3340971686", Identifier.byName("Default"))
				.scopeToProject(Identifier.byName("admin"), Identifier.byName("Default")).authenticate();
	}
}